package com.bjpowernode.beans;
import java.util.UUID;
public class MyAppUUID {

    public static void main(String[] args) {
        //UUID，全局唯一的一个字符串【】
        UUID uuid = UUID.randomUUID();
        //原版UUID字符串
        System.out.println(uuid.toString());
        //删除掉原版的-就为32位
        System.out.println(uuid.toString().replace("-",""));
        //原版UUID字符串长度
        System.out.println(uuid.toString().length());
    }
}
